package com.tmsps.auto.service.base;

import org.springframework.stereotype.Service;

import com.tmsps.auto.model.t_admin;


/**
 * 后台管理员服务类
 * 
 * @author zhangwei
 * 
 * 
 * @time 2014-3-27 下午3:16:27
 * 
 */
@Service
public class AdminService extends BaseService {
	/**
	 * 根据用户名密码查找管理员账户
	 * 
	 * @param m_name
	 * @param m_password
	 * @return
	 */
	public t_admin adminLoginCheck(String m_name, String m_password) {
		String sql = "select * from t_admin t where t.m_name = ? and t.m_password = ? and status = 0";
		t_admin ta = (t_admin) this.oc.findObj(sql, new Object[] { m_name,
				m_password }, t_admin.class);
		return ta;
	}
}
